@import '../theme/reset.css';
@import '../theme/alert.css';
@import '../theme/base.css';

@import '../theme/button.css';
@import '../theme/button-group.css';
@import '../theme/checkbox.css';
@import '../theme/checkbox-button.css';
@import '../theme/checkbox-group.css';
@import '../theme/dialog.css';
@import '../theme/collapse.css';
@import '../theme/collapse-item.css';
@import '../theme/card.css';
@import '../theme/row.css';
@import '../theme/col.css';

@import '../theme/form.css';
@import '../theme/form-item.css';
@import '../theme/input.css';
@import '../theme/message.css';
@import '../theme/message-box.css';
@import '../theme/input-number.css';
@import '../theme/loading.css';
@import '../theme/notification.css';
@import '../theme/pagination.css';
@import '../theme/radio.css';
@import '../theme/radio-button.css';
@import '../theme/radio-group.css';

@import '../theme/tab-pane.css';
@import '../theme/table-column.css';
@import '../theme/tabs.css';

@import '../theme/table.css';
@import '../theme/tag.css';

@import '../theme/upload.css';
@import '../theme/date-picker.css';
@import '../theme/time-picker.css';
@import '../theme/time-select.css';

@import '../theme/step.css';
@import '../theme/steps.css';


@import 'vars.less';
*{
  box-sizing: border-box;
}
.hd {
  width: @hd-width;
  margin-left:auto;
  margin-right: auto;
}
.sprites {
  background:url(../../assets/global.png) no-repeat;
}
.center {
  text-align: center;
}
.clearfix {
  overflow: auto;
}
.fl {
  float: left;
}
.fr {
  float: right;
}
.re {
  position: relative;
}
.bg-white {
  background-color: #fff;
}
.t0 {
  color: #fff;
}
.t1 {
  color: @color-primary;
}
.t2 {
  color: #333;
}
.t3 {
  color: @color-hint;
}
.t4 {
  color: #f00;
}
.t5 {
  color: green;
}
.t6 {
  color: #f35e0d;
}
.text-indent {
  text-indent: 2em;
  line-height: 1.8;
}
.f20{
font-size:18px;
}
.mt10 {
  margin-top: 10px;
}
.ml10{
  margin-left: 10px;
}
.mt20 {
  margin-top: 20px;
}
.m20{
  margin:20px;
}
.pd20{
  padding:20px;
}
.tcenter{
  text-align: center;
}
// login
.btn-login, .btn-register {
    width: 115px;
    height: 40px;
  }
  .btn-login {
    background-position: 0 0;
    color: @color-button;
    &:hover {
      color: @color-button;
    }
  }
  .btn-register {
    background-position: 0 -40px;
    color: @color-primary;
  }

  .logon {
    background: url(../../assets/login_bg.png);
    width: 128px;
    height: 29px;
    float: right;
    margin-top: 10px;
    padding: 4px 0 0 14px;
    a {
      color: lighten(@color-primary, 60%);
    }
    span {
      color: lighten(@color-primary, 40%)
    }
}
.no-data {
  padding: 140px 0 60px;
  font-size: 1em;
  color: #ddd;
  text-align: center;
  background-image: url(../../assets/notFound@2x.png);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 60px;
}
.four-cornor-wrapper {
  background-color: #FFFAF6;
  position: relative;
  border: 2px solid #EAD0C3;
  padding-bottom: 30px;
  .l, .r, .t, .b {
    position: absolute;
    width: 24px;
    height: 24px;
    display: block;
    background-image:url(../../assets/cornor01@3x.png);
    background-size: cover;
  }
  .l{
     top: 0;
    left:0;
  }
  .r {
    transform: rotate(90deg);
    top: 0;
    right:0;
  }
  .t {
    transform: rotate(270deg);
    bottom: 0;
    left:0;
  }
  .b {
    transform: rotate(180deg);
    bottom: 0;
    right:0;
  }
}

.alert_box {
  width: 662px;
  height:530px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

    .box_title {
    margin-top: 30px;
    margin-left: 30px;
    line-height: 24px;
    font-size: 18px;
    position: relative;
    float: left;
  }

  .box_title:before {
    content: '';
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 36px;
    background: url('../../assets/drawable-hdpi/tips_cloud.png') 0 0 no-repeat;
  }

  .box_title span {
    display: block;
    margin-left: 55px;
  }
}

.mask {
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
}


.clost_btn {
  margin-top: 30px;
  margin-right: 20px;
  float: right;
  width: 20px;
  height: 20px;
  background: url('../../assets/drawable-hdpi/icon_tips_关闭.png') 0 0 no-repeat;
  background-size: 100% 100%;
  cursor: pointer;
}

.msg_content {
  margin: 12% auto 30px;
  width: 80%;
  height: 65%;
  overflow-y: auto;
  .title {
    font-size: 16px;
    color: rgb(164, 56, 30);
  }
  .detail {
    color: #666;
  }
}
.dialog-common {
  width: 662px;
  background: #FFFAF6;
  .dialog-title {
    font-size: 18px;
    border-bottom: 1px solid #E5E5E5;
    padding:0 20px 16px;
  }
  .el-dialog__header {
    padding: 20px 0;
  }
  .el-dialog__headerbtn {
    position: relative;
    top: -36px;
    left: -20px;
  }
  .select-time {
    overflow: auto;
    margin-left: 100px;
    .time-box {
      display: inline-block;
      margin-right: 60px;
      margin-bottom: 20px;
    }
    a{
      display: block;
      width: 178px;
      height: 44px;
      background-position: 0 -317px;
      text-align: center;
      line-height: 44px;
      font-size: 16px;
      &:hover , &.active {
        background-position-y: -362px;
        color: #fff;
      }
      &.disable {
        background-position-y: -272px;
        color: #999;
      }
    }
  }
}

.doctor_schedule {
  width: 740px;
  border-top: 1px solid #ddd;
  float: left;
  height: 150px;
  font-weight: bold;
  .list-wrapper {
    float: left;
    width: 630px;
    overflow: hidden;
    position: relative;
    .list-scroller {
      width: 1260px;
      height:150px;
      transition: transform .6s;
      transform: translate3d(0,0,0);
    }
  }
  &.doctor-page {
    .list-wrapper {
      width: 560px;
      .list-scroller {
        width: 1120px;
      }
    }
    width: 670px;
    li.single_day {
      width: 80px;
    }
  }
  li {float: left;}
  .single_day {
  width: 90px;
  text-align: center;

}

.form_title {
  background: #fff5ee;
  border: 1px solid #ddd;
  border-top: 0;
  border-left: 0;
  padding: 4.5px 0;
}

.backward,
.forward {
  width: 55px;
}

.backward .form_title,
.forward .form_title {
  height: 44.5px;
  background: #fff5ee;
}

.backward div {
  border-left: 1px solid #ddd;
  position: relative;
}

.forward div {
  position: relative;
}

.morning,
.noon {
  border: 1px solid #ddd;
  border-top: 0;
  border-left: 0;
  height: 52px;
  text-align: center;
  line-height: 51px;
}
.backward .form_title:before,
.forward .form_title:before {
  content: '';
  display: block;
  width: 27px;
  height: 27px;
  cursor: pointer;
  margin: 3px auto;
}

.backward .form_title{
  &:before {
    background-image: url('../../assets/global.png');
    background-position: -180px 0;
  }
  &.active_arrow:before {
    background-position-y: -27px;
  }
}

.forward .form_title{
  &:before {
    background-image: url('../../assets/global.png');
    background-position: -145px 0;
  }
  &.active_arrow:before {
    background-position-y: -27px;
  }
}
.book_state_1 {
  background: #fff5ee;
  cursor: pointer;
}

.book_state_2 {
  background: #ee7100;
  color: #fff;
}

.book_state_3 {
  background: #f4f4f4;
  color: #ab5946;
}

.book_state_4 {
  background: #f4f4f4;
  color: #666666;
}

.book_state_5 {
  background: #f4f4f4;
  color: #666666;
}

}

.doctor-image {
  width: 115px;
}
.sider {
	width: 210px;
	float: left;
	background: #F6E8D8;
	padding-bottom: 10px;
	dt {
		background: url(../../assets/sider_bg.png);
		line-height: 40px;
		font-size: 1.2em;
		color: #fff;
		padding-left: 20px;
	}
	dd {
		padding: 15px 10px 15px 30px;
		background: #FEF2E9 url(../../assets/1.png) no-repeat 6px center;
		margin:10px 10px 0;
		a{color:#8A290B;display: block;}
		.iconfont {
			font-size: .8em;
			float: right;
      position: relative;
      top: -1.6em;
		}
		&.active {background-color: #fff;a{color: #333;}}
	}
}
.right-content {
	margin-left: 220px;
	background: #FFFBF8;
	min-height: 500px;
	.main {
		padding: 20px;
		.icon-user {
			font-size: 3em;
			color: #ddd;
		}
		.main-con {
			margin-left: 10px;
			h1 {margin: 18px 0;}
		}
	}
}

// common buttons
.common-main-button,
.common-sub-button {
  display: inline-block;
  width: 128px;
  height: 40px;
  text-align: center;
  line-height: 40px;
}
.common-main-button {
  background: url(../../assets/前往付费.png) 0 0 no-repeat;
  color: #ffcc99;
  &:hover{color: #ffeecc;}
}
.common-sub-button {
  background: url(../../assets/返回.png) 0 0 no-repeat;
  color: #663300;
  margin-left: 10px;
}

// select famiy member
.select-family-top {
  position: absolute;
  top: -60px;
  right: 41px;
}
.select-family-member {
margin-top: 40px;
overflow: hidden;
  li {
    float: left;
    width: 50%;
    margin-bottom: 20px;
  }
  .el-radio__label {
    font-size: 16px;
    display: inline-block;
    background: #fff;
    border: 1px solid #F8E6E2;
    padding: 10px;
    margin:0  10px;
    width: 240px;
  }
}
// search-bar
.yygh_search {
  width: 1080px;
  margin: 0 auto;
  height: 42px;
  background: url(../../assets/search_bg.png) 0 0 no-repeat;
  position: relative;
  line-height: 42px;
  background-size: 100% 100%;
  margin-top: 10px;
  padding-left: 30px;
   ul.fr {
     margin-right: 10px;
  }
  .shopping-cart {
    position: relative;
    cursor: pointer;
    margin-left: 150px;
  }
  .shopping-cart-num {
    position: absolute;
    display: block;
    background: #f00;
    color: #fff;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    line-height: 16px;
    text-align: center;
    top: 4px;
    right: -10px;
  }
  .search-list {
    position: absolute;
    top: 41px;
    right: 20px;
    width: 330px;
    background: #fff;
    border-left: 1px solid #E2BDAA;
    border-right: 1px solid #E2BDAA;
    border-bottom: 1px solid #E2BDAA;
    line-height: 1;
    box-shadow: 0 1px 5px rgba(0,0,0,0.3);
    z-index: 999;
    a{
      border-bottom: 1px solid #eee;
      display: block;
      padding: 10px;
      &:hover {
        background: #fee;
      }
      >small {
        color: #999;
      }
    }
  }
  >ul:first-child{
    position: absolute;
    padding-bottom: 10px;
    background: rgba(0,0,0,0.5);
    z-index: 10;
    height: 42px;
    overflow: hidden;
    >li{
      color: #fff;
      &:hover{
        background: #fff;
        color: #000;
      }
      a{
      padding: 0 40px;
        font-size: 16px;
        display: inline-block;
        width: 100%;
        height: 100%;
      }
    }
    
  }
   >ul:last-child>li {
      float: left;
      list-style: none;
      margin-right: 10px;

  a {
    text-decoration: none;
    color: #ffffff;
    font-size: 14px;
    width: 80px;
    display:inline-block;
    text-align: center;
  }
  .hover {
    background: url("../../assets/hover.png") 0 0 no-repeat;
    background-size: 100% 100%;
    display: inline-block;
    line-height: 30px;
    width: 80px;
    text-align: center;
  }
}
}
.flex{
  display:flex;
}
.flex_center{
  justify-content: center;
  align-items: center;
}
.flex_end{
  justify-content: flex-end;
}
.flex_vcenter{
  align-items: center;
}
.flex_between{
  justify-content: space-between;
}
.flex_around{
  justify-content: space-around;
}
.flex_full{
  flex:1 1;
}
